﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace LevelEditor
{
    public partial class LoadForm : Form
    {
        public LoadForm()
        {
            InitializeComponent();
        }

        private void submitButton_Click(object sender, EventArgs e)
        {
            EditorForm form = new EditorForm(nameBox.Text);
            Dispose();
            form.ShowDialog();
        }

        private void nameBox_Click(object sender, EventArgs e)
        {
            // opens a file navigator
            openFileDialog1.ShowDialog();
            nameBox.Text = openFileDialog1.SafeFileName;
        }

    }
}
